import { Enterprise } from 'src/enterprise/entities/enterprise.entity';
import { Entity, PrimaryGeneratedColumn, Column, ManyToOne } from 'typeorm';

@Entity()
export class EnterpriseSearchStats {
  @PrimaryGeneratedColumn()
  id: number;

  @ManyToOne(() => Enterprise, { onDelete: 'CASCADE' })
  enterprise: Enterprise;

  @Column({ type: 'int', default: 0 })
  searchCount: number;
}
